import http from '@/utils/http'
//借书
export const borrowApi = async(parm) => {
  return http.post('/api/borrow', parm)
}
//还书列表
export const returnBorrowApi = async(parm) => {
  return http.get('/api/borrow/getBorrowList', parm)
}
//还书
export const returnBooksApi = async(parm) => {
  return http.post('/api/borrow/returnBook', parm)
}
//异常还书
export const exceptionBooksApi = async(parm) => {
  return http.post('/api/borrow/exceptionBooks', parm)
}
//拒绝审核
export const refuseExamineBooksAPi = async(parm) => {
  return http.post('/api/borrow/refuseExamineBooks', parm)
}
//借阅列表
export const getLookBorrowListApi = async(parm) => {
  return http.get('/api/borrow/getLookBorrowList', parm)
}
//审核图书
export const examinBookApi = async(parm) => {
  return http.put('/api/borrow/examinBook', parm)
}
//图书续期
export const addBookTimeApi = async(parm) => {
  return http.put('/api/borrow/addBookTime', parm)
}


